package com.teamone.etl.taskmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 任务信息表(EtlTaskInfo)表实体类

 @author makejava
 @since 2021-01-08 20:41:58 */
@SuppressWarnings("serial")
public class EtlTaskInfo extends Model<EtlTaskInfo> {
    /**
     id
     */
    @TableId(type = IdType.INPUT)
    private String id;
    /**
     任务名称
     */
    private String name;
    /**
     任务权重级别 0紧急任务1高2中3低
     */
    private Integer weight;
    /**
     任务执行状态
     */
    private String processStatus;
    /**
     总处理逻辑条数
     */
    private Integer total;
    /**
     已处理逻辑条数
     */
    private Integer processTotal;
    /**
     任务状态   0待执行    1可执行       2正在执行       3执行完成
     */
    private Integer status;
    /**
     任务完成度
     */
    private BigDecimal proportion;
    /**
     错误条数
     */
    private Integer errorTotal;
    /**
     总需执行次数
     */
    private Integer executeTotal;
    /**
     已完成执行次数
     */
    private Integer completeExecuteTotal;
    /**
     成功插入条数
     */
    private Integer successInsertTotal;
    /**
     成功修改条数
     */
    private Integer successUpdateTotal;
    /**
     成功删除条数
     */
    private Integer successDeleteTotal;
    /**
     插入失败条数
     */
    private Integer errorAddTotal;
    /**
     逻辑失败条数
     */
    private Integer errorLogicTotal;
    /**
     预计完成时间 精确到秒
     */
    private Integer completeTime;
    /**
     累计处理时间 精确到秒
     */
    private Integer grandTotalTime;
    /**
     乐观锁
     */
    private Integer revision;
    /**
     创建人
     */
    private String createBy;
    /**
     创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     更新人
     */
    private String updateBy;
    /**
     更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
     是否删除 0未删除 -1删除
     */
    private Integer isDelete;
    /**
     前端json
     */
    private String processJson;

    public Integer getIsDelete () {
        return isDelete;
    }

    public void setIsDelete (Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String getId () {
        return id;
    }

    public void setId (String id) {
        this.id = id;
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public Integer getWeight () {
        return weight;
    }

    public void setWeight (Integer weight) {
        this.weight = weight;
    }

    public String getProcessStatus () {
        return processStatus;
    }

    public void setProcessStatus (String processStatus) {
        this.processStatus = processStatus;
    }

    public Integer getTotal () {
        return total;
    }

    public void setTotal (Integer total) {
        this.total = total;
    }

    public Integer getProcessTotal () {
        return processTotal;
    }

    public void setProcessTotal (Integer processTotal) {
        this.processTotal = processTotal;
    }

    public Integer getStatus () {
        return status;
    }

    public void setStatus (Integer status) {
        this.status = status;
    }

    public BigDecimal getProportion () {
        return proportion;
    }

    public void setProportion (BigDecimal proportion) {
        this.proportion = proportion;
    }

    public Integer getErrorTotal () {
        return errorTotal;
    }

    public void setErrorTotal (Integer errorTotal) {
        this.errorTotal = errorTotal;
    }

    public Integer getExecuteTotal () {
        return executeTotal;
    }

    public void setExecuteTotal (Integer executeTotal) {
        this.executeTotal = executeTotal;
    }

    public Integer getCompleteExecuteTotal () {
        return completeExecuteTotal;
    }

    public void setCompleteExecuteTotal (Integer completeExecuteTotal) {
        this.completeExecuteTotal = completeExecuteTotal;
    }

    public Integer getCompleteTime () {
        return completeTime;
    }

    public void setCompleteTime (Integer completeTime) {
        this.completeTime = completeTime;
    }

    public Integer getGrandTotalTime () {
        return grandTotalTime;
    }

    public void setGrandTotalTime (Integer grandTotalTime) {
        this.grandTotalTime = grandTotalTime;
    }

    public Integer getRevision () {
        return revision;
    }

    public void setRevision (Integer revision) {
        this.revision = revision;
    }

    public String getCreateBy () {
        return createBy;
    }

    public void setCreateBy (String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy () {
        return updateBy;
    }

    public void setUpdateBy (String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime () {
        return updateTime;
    }

    public void setUpdateTime (Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getSuccessInsertTotal () {
        return successInsertTotal;
    }

    public void setSuccessInsertTotal (Integer successInsertTotal) {
        this.successInsertTotal = successInsertTotal;
    }

    public Integer getSuccessUpdateTotal () {
        return successUpdateTotal;
    }

    public void setSuccessUpdateTotal (Integer successUpdateTotal) {
        this.successUpdateTotal = successUpdateTotal;
    }

    public Integer getSuccessDeleteTotal () {
        return successDeleteTotal;
    }

    public void setSuccessDeleteTotal (Integer successDeleteTotal) {
        this.successDeleteTotal = successDeleteTotal;
    }

    public String getProcessJson () {
        return processJson;
    }

    public void setProcessJson (String processJson) {
        this.processJson = processJson;
    }

    public Integer getErrorAddTotal () {
        return errorAddTotal;
    }

    public void setErrorAddTotal (Integer errorAddTotal) {
        this.errorAddTotal = errorAddTotal;
    }

    public Integer getErrorLogicTotal () {
        return errorLogicTotal;
    }

    public void setErrorLogicTotal (Integer errorLogicTotal) {
        this.errorLogicTotal = errorLogicTotal;
    }

    /**
     获取主键值

     @return 主键值
     */
    @Override
    protected Serializable pkVal () {
        return this.id;
    }
}